%
%  Style-input-file t.b.v conversie
%  WordPerfect 5.0 --> LaTeX
%
%  (c) Rob Houtepen   Januari 1989
%  Rekencentrum  TU-Eindhoven
%
%
\typeout{Extra style `wp2latex' <16 Jan 90>.}

\def\WPtoLaTeX{{\rm W \kern-.38em\hbox{P}\kern-.2em\lower.7ex\hbox{2}\kern-.07em\hbox{\LaTeX}}}

% Dit is een herdefinitie van de paginalayout-parameters
%
\if@twoside \oddsidemargin 0pt \evensidemargin 0pt \marginparwidth 107pt
\else \oddsidemargin 0pt \evensidemargin 0pt
\marginparwidth 90pt
\fi
\marginparsep 11pt
\topmargin 0pt \headheight 12pt \headsep 25pt \footheight 12pt \footskip 30pt
\textheight 22cm \textwidth 15.8cm \columnsep 10pt \columnseprule 0pt
\parskip 0pt plus 1pt \parindent 15pt \topsep 0pt plus 2pt minus 4pt
\partopsep 2pt plus 1pt minus 1pt \itemsep 0pt plus 2pt minus 1pt
\tolerance 9990    % Voorkomt veel-te-lege regels

\parindent 0pt
\parskip 0pt
\tabbingsep 0pt

% speciale chars
%
\newlength\@circht
\newcommand{\@twodots}[1]{\mathrel{.\llap{\raisebox{#1}{.}}}}
\newcommand{\@spjoinrel}{\mathrel{\mkern-9mu}}
\newcommand{\sbullet}{\mbox{\the\scriptfont2\char'017}}
\newcommand{\trademark}{\raisebox{0.7ex}{\the\scriptscriptfont0 TM}}
\newcommand{\circchar}[1]{%
            {\ooalign{\hfil%
                 \raise0.07ex\hbox{\the\scriptscriptfont0\raise0.15ex\hbox{#1}}%
                      \hfil\crcr\mathhexbox20D%
                     }%
            }}
\newcommand{\regmark}{\circchar{R}}
\newcommand{\circdots}{\setbox0=\hbox{$\circ$}\setlength{\@circht}{\ht0}%
                       \mbox{$\@twodots{\@circht}%
                              \@spjoinrel\raisebox{0.1ex}{$\circ$}%
                              \@spjoinrel\@twodots{\@circht}%
                             $%
                            }%
                      }
\newcommand{\charstrike}[1]{\raisebox{0.7ex}{\the\scriptfont0\b{#1}}}
\newcommand{\astrike}{\charstrike{a}}
\newcommand{\ostrike}{\charstrike{o}}
\newcommand{\lowerquote}{\raisebox{-1.2ex}{"}}
\newcommand{\mound}{\mbox{$.\raisebox{0.8ex}{.}.$}}
\newcommand{\bslash}{{\tt\char'134}}
\newcommand{\circumflex}{{\char'136}}
\newcommand{\snake}{{\char'176}}
\newcommand{\degrees}{{\char'027}}
\newcommand{\gtlt}{\mbox{
     \raisebox{0.6ex}{\the\scriptscriptfont1 >}\llap{%
     \raisebox{-0.4ex}{\the\scriptscriptfont1 <}} }}

% \justified maakt \raggedright, \raggedleft en \centering zo goed mogelijk
% ongedaan.  N.B. het effect is merkbaar in de hele alinea, dus ook op evt.
% voorgaande regels.
%
\def\justified{\let\\=\@normalcr \@rightskip 0pt%
               \rightskip\@rightskip \leftskip 0pt
              }
%
% Nieuwe harde regel onafhankelijk van enviroment
%
\newcommand{\nwln}{\vspace{\baselineskip}}

%
% Een gecentreerde tab:
%
\newcommand{\ctab}[1]{\makebox[0pt][c]{#1}}

%
% Een onderstreepkommando met de lijn altijd tegen de schrijflijn
%
\def\Underline#1{$\underline{\smash{\hbox{#1}}}$}

%
% Nieuw environment tbv van Inspringen
%
\newenvironment{indenting}[3]%
{\begin{list}{#3}{\setlength{\leftmargin}{#1}
                  \setlength{\labelwidth}{#1}
                  \setlength{\rightmargin}{#2}
                  \setlength{\topsep}{0pt}
                  \setlength{\partopsep}{0pt}
                  \setlength{\parskip}{0pt}
                  \setlength{\parsep}{0pt}
                  \setlength{\itemsep}{0pt}
                  } \item }%
{\end{list}}
%
%       **************************************************************
%       *      TUE HEADERS EN FOOTERS EN PAGINANUMMERPLAATSING       *
%       **************************************************************
%
%       (c) R.C.Houtepen 7-12-89
%
%    Variablen t.b.v. plaatsing paginanummers.
%
\newtoks\pntl \newtoks\pntc \newtoks\pntr
\newtoks\pnbl \newtoks\pnbc \newtoks\pnbr
\newtoks\pnno

\def\@pntopleft{}     \def\@pntopcenter{}     \def\@pntopright{}
\def\@pnbottomleft{}  \def\@pnbottomcenter{}  \def\@pnbottomright{}

\newlength{\pnheadfootsep}  \setlength{\pnheadfootsep}{1em}
%
%     Het paginanummerplaats-commando:
%
\newcommand{\pagenumpos}[1]{%
     \gdef\@pntopleft{}     \gdef\@pntopcenter{}    \gdef\@pntopright{}%
     \gdef\@pnbottomleft{}  \gdef\@pnbottomcenter{} \gdef\@pnbottomright{}%
           \ifx#1\pntl \gdef\@pntopleft{\thepage \hspace{\pnheadfootsep}}%
     \else \ifx#1\pntc \gdef\@pntopcenter{\hspace{\pnheadfootsep} \thepage}%
     \else \ifx#1\pntr \gdef\@pntopright{\hspace{\pnheadfootsep} \thepage}%
     \else \ifx#1\pnbl \gdef\@pnbottomleft{\thepage \hspace{\pnheadfootsep}}%
     \else \ifx#1\pnbc \gdef\@pnbottomcenter{\hspace{\pnheadfootsep} \thepage}%
     \else \ifx#1\pnbr \gdef\@pnbottomright{\hspace{\pnheadfootsep} \thepage}%
        \fi\fi\fi\fi\fi\fi     }

%
%     Variabelen T.b.v Headers en footers
%
\newtoks\oddpages \newtoks\evenpages \newtoks\allpages
\newtoks\neverpages

\def\@elefthead{} \def\@emidhead{} \def\@erighthead{}
\def\@eleftfoot{} \def\@emidfoot{} \def\@erightfoot{}
\def\@olefthead{} \def\@omidhead{} \def\@orighthead{}
\def\@oleftfoot{} \def\@omidfoot{} \def\@orightfoot{}

\newlength{\@hfleni} \newlength{\@hflenii}

%
%     Het headtext-commando:
%
\newcommand{\headtext}[4]{%
          \ifx#1\oddpages
               \gdef\@olefthead{#2}\gdef\@omidhead{#3}\gdef\@orighthead{#4}%
          \else\ifx#1\evenpages
               \gdef\@elefthead{#2}\gdef\@emidhead{#3}\gdef\@erighthead{#4}%
          \else\ifx#1\allpages
               \gdef\@olefthead{#2}\gdef\@omidhead{#3}\gdef\@orighthead{#4}%
               \gdef\@elefthead{#2}\gdef\@emidhead{#3}\gdef\@erighthead{#4}%
          \else\ifx#1\neverpages
               \gdef\@olefthead{}\gdef\@omidhead{}\gdef\@orighthead{}%
               \gdef\@elefthead{}\gdef\@emidhead{}\gdef\@erighthead{}%
          \fi\fi\fi\fi
                        }

%
%     Het foottext-commando:
%
\newcommand{\foottext}[4]{%
          \ifx#1\oddpages
               \gdef\@oleftfoot{#2}\gdef\@omidfoot{#3}\gdef\@orightfoot{#4}%
          \else\ifx#1\evenpages
               \gdef\@eleftfoot{#2}\gdef\@emidfoot{#3}\gdef\@erightfoot{#4}%
          \else\ifx#1\allpages
               \gdef\@oleftfoot{#2}\gdef\@omidfoot{#3}\gdef\@orightfoot{#4}%
               \gdef\@eleftfoot{#2}\gdef\@emidfoot{#3}\gdef\@erightfoot{#4}%
          \else\ifx#1\neverpages
               \gdef\@oleftfoot{}\gdef\@omidfoot{}\gdef\@orightfoot{}%
               \gdef\@eleftfoot{}\gdef\@emidfoot{}\gdef\@erightfoot{}%
          \fi\fi\fi\fi
                          }
%
%    Het werkelijk plaatsen van de headers en footers
%
\newcommand{\@headfoot}[3]{%
            \settowidth{\@hfleni}{#2}%
            \ifdim\@hfleni=0pt \makebox[\textwidth]{#1\hspace*{\fill}#3}%
            \else \settowidth{\@hfleni}{#1}%
                  \settowidth{\@hflenii}{#3}%
                  \ifdim\@hflenii>\@hfleni
                          \setlength{\@hfleni}{\@hflenii}%
                  \fi%
                  \makebox[\textwidth]{\makebox[\@hfleni]{#1\hspace*{\fill}}%
                                       \hspace*{\fill}{#2}\hspace*{\fill}%
                                       \makebox[\@hfleni]{\hspace*{\fill}#3}%
                                      }%
            \fi
                    }
%
%     Dit commando wordt aan het begin en aan het eind van een
%     pagina uitgevoerd.
%
\def\ps@wptolatex{%
        \def\@oddhead{\ifodd\value{page}%
                              \@headfoot{\@pntopleft\@olefthead}{\@omidhead\@pntopcenter}{\@orighthead\@pntopright}%
                      \else
                              \@headfoot{\@pntopleft\@elefthead}{\@emidhead\@pntopleft}{\@erighthead\@pntopright}%
                      \fi
                     }%
        \def\@evenhead{\@oddhead}%
        \def\@oddfoot{\ifodd\value{page}%
                              \@headfoot{\@pnbottomleft\@oleftfoot}{\@omidfoot\@pnbottomcenter}{\@orightfoot\@pnbottomright}%
                      \else
                              \@headfoot{\@pnbottomleft\@eleftfoot}{\@emidfoot\@pnbottomcenter}{\@erightfoot\@pnbottomright}%
                      \fi
                     }%
        \def\@evenfoot{\@oddfoot}%
                }

\pagestyle{wptolatex}
